package sideral.ProcesamientoImagen;

import java.util.ArrayList;

public class Imagen {
	
	ArrayList<Linea> aLLineas;
	
	public Imagen()
	{
		aLLineas=new ArrayList<Linea>();
	}
	
	public boolean addLinea(Linea _linea)
	{
		if(aLLineas.add(_linea))
			return true;
		
		else
			return false;
	}
	
	public Linea getLinea(int _index)
	{
		return aLLineas.get(_index);
	}
	
	public int getWidth()
	{
		return aLLineas.size();
	}
	
	public int getHeight()
	{
		return getLinea(0).aLPixelGroup.size();
	}
	
	public int getSize()
	{
		return aLLineas.size();
	}
}